
CC=dmc
LINK=link
LIBR=lib

CC	= dmc
LIBR	= lib

CFLAG	= -DWIN32=1 \
	-DSTRICT \
	-Ictaocrypt/include -Iinclude \
	-DHAVE_CONFIG_H \
	-DOPENSSL_EXTRA \
	-c

OBJS	= $(patsubst %.c, %.obj, $(wildcard ctaocrypt/src/*.c src/*.c))
S_OBJS	= $(patsubst %.s, %.s.obj, $(wildcard ctaocrypt/src/*.s))

ALL: yassl.lib

%.s.obj: %.s
	$(CC) $(CFLAG) $^ -o$@

%.obj: %.c
	$(CC) $(CFLAG) $^ -o$@

yassl.lib: $(OBJS)
	$(LIBR) -c $@ $^

clean:
	del /S /Q *.obj
	del /S /Q *.map
